<?php
declare (strict_types = 1);

namespace app\adminapi\model\Admin;

use adminmatrix\admin\model\BaseModel;
use think\Model;
use think\model\relation\HasMany;

/**
 * @mixin \think\Model
 */
class AdminRole extends BaseModel
{
    protected array $type = [
        'status'    =>  'bool'
    ];

    #------------------------------------------------------------
    #
    #   关联模型
    #
    #------------------------------------------------------------

    public function perms() : HasMany
    {
        return $this->hasMany(AdminRolePermission::class ,'role_id'  );
    }
}
